//
//  AdminView.m
//  真·豆瓣半完全体
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "AdminView.h"

@implementation AdminView


- (instancetype) initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}

- (void) creatView{
    self.Label = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 100, 50)];
    _Label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_Label];
    [_Label release];
    
    self.tf = [[UITextField alloc] initWithFrame:CGRectMake(120, 0, 200, 50)];
    _tf.layer.masksToBounds = YES;
    _tf.layer.cornerRadius = 15;
    _tf.borderStyle = UITextBorderStyleRoundedRect;
    _tf.layer.borderWidth = 2;
    _tf.clearButtonMode = UITextFieldViewModeAlways;
    [self addSubview:_tf];
    [_tf release];
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
